/**公共插件
 * start:2021-4-16 16:03
 */


//时间处理(处理UTC格式的时间处理为时区格式)
export let TimeTransition=(time1)=>{
     let newdate=new Date(time1)
         return newdate.getFullYear()+'-'+SetNum(newdate.getMonth()+1)+'-'+SetNum(newdate.getDate())+' '+SetNum(newdate.getHours())+':'+SetNum(newdate.getMinutes())+':'+SetNum(newdate.getSeconds())   
}



//处理数字,不满10的数字在前面+0
export let SetNum=(data)=>(data<10?'0'+data:data);

